pattern program without loops

join shbcf.ru